package com.haoran.grope.server;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.haoran.grope.Sum;

@Component
public class RabbitMQServer1 {

	@RabbitListener(queues = "queue-sum")
	public void receive(Sum message) {
		System.out.println("----RabbitMQServer1----" + message.getA() + "+" + message.getB() + "=" + message.getA()
				+ message.getB());
	}

}